﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using System.Threading.Tasks;

namespace CPPEI.Coolzon.DesignServer.Data
{
    [MessageContract]
    public class CheckInResponse
    {
        [MessageHeader]
        public bool IsSuccess { get; set; }
        [MessageHeader]
        public int ErrorCode { get; set; }

        [MessageHeader]
        public Guid ItemId { get; set; }

        [MessageHeader]
        public string ItemName { get; set; }

        [MessageHeader]
        public int ItemVersion { get; set; }

        public CheckInResponse()
        {

        }

        public CheckInResponse(bool isSuccess, int errorCode, Guid itemId, string itemName, int itemVersion)
        {
            this.IsSuccess = isSuccess;
            this.ErrorCode = errorCode;
            this.ItemId = itemId;
            this.ItemName = itemName;
            this.ItemVersion = itemVersion;
        }
    }
}
